package iedcyt.acute.controller.listeners.DatosLevel;

import iedcyt.acute.model.DatosLevelModel;
import iedcyt.acute.view.DatosLevelView;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;

public class DatosLevelDobleClickListener implements Listener {

	private DatosLevelModel _model;
	private DatosLevelView _view;
	
	public DatosLevelDobleClickListener(DatosLevelView _view2, DatosLevelModel _model2) {
		this._model = _model2;
		this._view = _view2;
	}
	
	@Override
	public void handleEvent(Event event) {
		String titleIssn = _view.getSelectedTitleIssnDatosLevel();
		//System.out.println(titleIssn);
		if (!titleIssn.isEmpty()) {
			_model.googleSearch(titleIssn);
			
			
		}
	}
}
